<% layout("/common/layout.html",{"title":"行政审批列表"}){ %>
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-sm-8">
        <h2>行政审批列表</h2>
        <ol class="breadcrumb">
            <li><a href="${ctxPath}/admin/main">主页</a></li>
            <li class="active">行政审批列表</li>
        </ol>
    </div>
    <div class="col-sm-4">
        <div class="title-action">
        </div>
    </div>
</div>
<div class="wrapper wrapper-content">
    <div class="row">
      <!-- 搜索-->
        <form id="searchForm">
            <div class="ibox-content m-b-sm border-bottom">
                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="control-label" for="searchValue">事项名称/事项编码/办件编号：</label>
                            <input type="text" class="form-control searchValue"  placeholder="请输入事项名称/事项编码/办件编号查询">
                        </div>
                    </div>

                    <div class="col-sm-2 pull-right">
                        <div class="form-group">
                            <label class="control-label" for="search">&nbsp;</label>
                            <div class="btn-block text-right">
                                <button type="button" id="search" class="btn btn-primary "><i class="fa fa-search"></i>&nbsp;搜 索&nbsp;</button>
                                <button type="button" id="reset" class="btn btn-danger"><i class="fa fa-undo"></i>&nbsp;重 置&nbsp;</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
      <!-- 搜索-->
      
          <!-- 表格-->
        <div class=" animated fadeInDown">
            <div class="mail-box">
                <div class="ibox-content">
                    <table id="dataList"></table>
                    <div class="toolBar pull-right">
                            <div class="btn-group">
                                <a href="index" class="btn btn-primary btn-outline ${currentAction == 'index'?'active'}"><i class="fa fa-lock" aria-hidden="true"></i>&nbsp;申请受理</a>
                                <a href="approve" class="btn btn-primary btn-outline ${currentAction == 'approve'?'active'}"><i class="fa fa-retweet" aria-hidden="true"></i>&nbsp;审核办理</a>
                                <a href="refuse" class="btn btn-primary btn-outline ${currentAction == 'refuse'?'active'}"><i class="fa fa-reply" aria-hidden="true"></i>&nbsp;退回修改</a>
                                <a href="pass" class="btn btn-primary btn-outline ${currentAction == 'pass'?'active'}"><i class="fa fa-check" aria-hidden="true"></i>&nbsp;核准通过</a>
                            </div> 
                    </div>
                </div>
            </div>
        </div>
        <!-- 表格-->
    </div>
</div>
<% } %>
<script type="text/javascript">
    //页面JS调用
    require(['examine/examine'], function (examine) {
    	examine.list('${currentAction}');
    });
    //列表参数
    function operateFormatter(value, row, index) {
        var tempCode = "";
        if(row.handleState === '收件'||row.handleState === '预受理'||row.handleState === '预受理退回'){
        tempCode += '<button type="button" class="accept btn btn-white"><i class="fa fa-lock"></i>&nbsp;受理&nbsp;</button>';
        }
        if(row.handleState === '受理'||row.handleState === '补齐补正'||row.handleState === '不予受理'){
         tempCode += '<button type="button" class="handle btn btn-white"><i class="fa fa-retweet"></i>&nbsp;审核&nbsp;</button>';
        }
        tempCode += '<button type="button" class="info btn btn-white"><i class="fa fa-info-circle"></i>&nbsp;详情&nbsp;</button>';
        return '<div class="btn-group">' + tempCode + '</div>';
    }
</script>